Unused files removed. Fixed register condition.