Changed code for composeAsync