Adds pty support