Moved the collectstatic instruction to the appropriate temporal location