Setting up embedded contracts