[WIP] Add function attributes