Updating to make code fit documentation