Added bit functions.