Made Mark's code readable