Tidying main