Clean up code for Linux