Added script for graphs