Changed bit operations and others… seems fully functional!