Added integer selects
Added incwrap, decwrap functions