Adding new functions to TextUI