Adds play function