Windows support
Pending status works (was broken by previous refactor)