Changed bytes to ints to avoid typecasting when calling the methods