Completion of first version of trail formation