Added functionality for starting in xterm