Initial code copied from tender connector