Entry code written and tested, not connected to ui yet.