Added Edit functionality.
TODO: Logger, API