Modified script to add second x-axis