Functions related to returns