Add friction to the code.