Next and prev functions should be optional