Added typeout functionality.