Code sample update - parameters and format