Trying desperately to fix problem with function conflicting types.