Fixes bug where markers were not pushed to array, bonus logging statements