Debugging by outputting logcat after 5 second wait