Added exception +first code to handle overwriting