I agree with Bronwyn's comment, these functions could definitely use some javadocs