Added Math functionality. Nearly completed.