Forward Backward Function.