Create apiRunner logic