Can you combine that code into single block?