Fixing gc and making gc async to process faster