Move code to the common function