added function calls
added PushParam and PopParams for function calls