Added signal handlers
Made poll 2 seconds