Use proper type declarations for custom variables