Fixed the prelimnary automation