Tidy main loader class