First version of automatic track generation