Create thunk based API of your module