Changed int to size_t. Changed the way one gets the instance.