Implements #28

Works great on windows