Adding a method to return an optional value.