Added linear system solver. Working on events.