Better support Windows

This changes allow interact with user, actual for Windows platform.