ADDED code from tutorial.