Cleaned up some resources which were also no longer necessary.