Adding script for electrical simulation