Fixed a few bits, should fully operate now