Meh, not working but will commit so that others can find it. WARNING THIS IS BROKEN!