Beginning impl of api