Restoring code used for proposal