GC timer added and minor bugs fixed