Added setProperties and code connections