Added retry to sd card reading