Introduce declaration stmt
Fix funny function registration problem