Moved error callback to platform module
Focus callback
More callbacks
Some further work...