Added workaround for malformed function declarations