Initial commit of loader.R