New version of script for remy.