Modified to match ROS Python style guide.