Added new legacy file for non DOM code