Added a function for a next card