Added some sanity checking to the flowers' connection code.