Moved demo code in to separate file.