Completed resourceretake branch with new functioning ResourceHandler2