I think you should just use the reverse and apply functions.