Modifiying takeresourceAction