Added New code for GM and overcrowing