Add single thread solution