Added prelim working code.