Loader logic