Do not include windows.h and improve code readability