Added w_command_print and w_command_printerr methods