Added matrix rotation