added setManualPosition function for testing purposes