Implementing the TYPE command