Updated script from extension