Discovering API pattern. WIP.