Readapted code to employ latest revision of Banana Engine.