Implemented 2D linear modes.