Removed autoLoad variable as it was causing problems.