Made loader function public so the doctrine classloader can use it.