Added 'amount' option for rendering links