Preserve context of callback