Added in output window and some recognition code. Not working yet.