Updated the command method to accept a parameter $prefix.