Added startup-callback and shutdown-callback