Used set default instead of if statement.