Added registration and the ability to add scripts.