Shifted functions around for clarity
Fix wrong variable in getSource