Simplify code by inserting 0 and 1 values