Updated with more logging options and configuration.