Added logic for rotation arount x and z