Current bad code. terminates on run