Fix styles for bs 3.
Optimize logging.