Change runtime attribute APIs to return target and enable a fluent API