For both methods