Testing assetFunctions in main loop.