Minor changes to influence function