First working sim; needs cleaned up still.