Add after and before to listings