Add function for terminal ouput