Modified register goal and penalties.
Modified register function.