Added callback to loader