Updated example with new arguments