Refactored sentry code for DRY Functions