but can i wait for the queries? before going on with the rest of the code?