Cleanup, god this is bad code.