Reffactor custom scripts