That first one works perfectly, although I'm not exactly sure how.