Added utility functions to terminal