Added a couple of basic functions. Now accepts input and does basic update.