Changed a couple of vars from int to byte type to save RAM.