Separate server from command.
Find.
API handler.
Cleanup.