Corrected Code

Added Back In Necessary Code That Had Been Deleted Previously.
Fixed Syntax Issues.