Separated demo from headsail code