Removing hardcoded values, optimizations. Skeleton for objloader