Added required paramater to loader class