Added static variable to get last recipe selected