Using getattr to ensure it won't break if missing