Changed arrays to Integers for easier comparing later on.