Add failsafe to prevent writing illegal values to file