Atgscripts

Group reallocation.
-Error handling in the script.