Adds remain_file_pointer decorator