Only change tables where necessary