Fixed and described the loader logic