Set dap attributes in much cleaner way