added basic functionality.