Added displacement instructions
Refactored'