Might be messy, but the logic's there xD  Once I confirm certain syntax
should be free to help with other parts.