Added gc to save some memory