Changed uint32_t to unsigned int, wrapped uint functions for int implementation