Added local file hook and sigint handler