Adding previous codes