Chop the onions very finely.
Fry the onions in the ghee for 2 minutes.
Add the crushed garlic and fry again for 1 minute.
Add the curry and chilli powders and fry again for 1/2 minute.
Add the baked beans, tomato ketchup and a little salt, if required.
Serve hot with toast or rice.