Added single threaded counterpart and fixed weird commit error from last