Added payments function