Going with @demongoo's solution instead.