Replace 'ta' alias with function to create and attach