Inserted the code for the use-yields functionality