Changed size to an unsigned long instead of int