Add support for function attribute check