Registration (with contract code)