Started working on heap allocation. Added signals.