The main API of lpmd.