Added log for troubleshooting