Logging added for debug