Make the code more portable.