Modified for Linux.