Change Function Definitions to SH Compatible