Modified for plotting new graph