Extracted asset loading functions from main file