Changed order of methods
Extracted register_callbacks method