Add some optimized functions (1 still ain't done though)