Adjusting the code for Linux(Made by DDANTAS)