Adding peer factory class