Changed code for lateral movement