Could you rewrite this to be generic?