added logic and code to get running.