Tried to fix up parameter passing and static link up