Add m-file for convenience