Registered the Sentry class in its own method.