Modified applying impulses
Modified some parameters