Fixed left to right function.