555 and inverter replaced with 4047