Added clean graph option