Refactor a bit to be more sane

Adds "shiftLeft" and "and" operations.