Implemented surface constraints