Fix lots of updated and deprecated functions, aproaches, etc