Remove shift code to change a new algorithm