I previously answered a similar question here; the user who asked it has since deleted the question, but I will repeat it below with some minor edits.