Adding OTP grid card functionality

I edited Core.php inline, but yet github is finding all these differences. I only added 3 new lines.