Deprecated some methods.
Implemented some functionality in MainActivity.