Node re-factored for readability.