Added log and version check