Fixed flashing issue and removed some debug print calls