Add ugly implementation of func params extraction