Pass options to getPosition and improve error msg