Added code to deal with clearing csv