Apply with-block