Inital code, just switching between mod and no mod