Fixed guards, now working with arrays