Changed type back from uint64_t to long. (32-bit). Probably want to use the explicit types sometime, but for now, the uint64_t's were not compiling and not necessary.