Added log functionality for debug