Added error loading to loader class