MK3 Added  Richs updates and bitwise function