Simplified to bit operations