Removed Unnecessary Code

Also edited manifest file as it was skipping a permission strangely.