added patch from feature request to use getFrom function.