Added tidy function.