Updated to use console script instead