Added left and right logic