Adding closures to loader