To be compatible with command line