Modified logic for method 'outbox'