Tidy pom and add some logging