Added terminal utility functions.