Made flyToObject a function instead of a property
Added duration option