2004 Impala LS

Engine occasionally fails to turn over. Battery is OK. Unpredictable. After waiting 15-30 minutes, car starts normally. Appears to be linked to relays or other components necessary for engine to start over