Implement MAGIC_RETURN