Todays work. Now with basic functionality. Need some refactoring.