Made changes to the Script.java class as pollable.