Modified APIProtocol and the variable api