Casted size_t to int to resolve warning.