Added the ability to lock the marker's position so that planning will not have to be done twice.