Added logging, spring support.