Rule reminder
Congiuntivo presente is used when the main clause is in the present or future. Congiuntivo imperfetto is used when the main clause is in a past tense.
Il medico mi ha prescritto delle medicine affinché io _____ (stare) meglio.