Updated script for signals