First assemble code for client