Added libraries copying code.