+1, might make that a global definition at the top for easier re-use.