Debugging nil pointer error.