Sequencing of events in function call + return with parameters and return values