Sourcecode as provided by Magicard