richer logging
proper time control added.