Use logic instead of code