Add base format detector