Change ordering of function calls in quick-start code