Moved business logic to a seperate namespace.