Ported Tiger Demo, some refactorings.