Added OS checking.