Fixed exit, added file to store values