Adding code for personal use.