Simplified overly complicated cast because I'm still learning.