Added left and right shift functors.