Fixed non-unique uids and added integration environment.