Got a very basic version working, now onto debugging and enhancing