Changed some variables types...no need to be dealing with uint32 etc.....instead: long; at least 32 bits, etc