Added helper for bit operations.