Changed all sizeof(Type) to sizeof var*