Added translating for if and while statements.