Rename withResource to with (thanks @Gabriel439)