Added routine to accept xlabel and ylabel from script