Added compatibility with windows