Add functions for create trapper server.