AMENDED PROMISSORY NOTE AND SECURITY AGREEMENT