Warnings - use size_t where appropriate to prevent warning when compilation is targeting 64 bit