Implemented while, dowhile and for, but for is broken.