Added compatibility for linux.