Objecttype must be Sub