Added input implementation.