Start to write algorithm manager