Cleaned up some resources