Added return check statement.