Created method for generating common loader