Added more command checking and processing