FIX: Check type