Changed design of API to integrate with netwire and use FRP