Added missing weekend check function