Changed the argument obtaining functions to make more sense with Javascripts conventions