Fix spacing, call setType, check if valid