MK2 Added  Richs updates and bitwise function