Logging bugfix + userdata script update