Move code to first part of location