Simplify script - no change in functionality.