Cleanup dependencies, Log.d calls, and Toast.