Edited with void function as per tutorial.