Added common functions used in Download projects to own module