First version of parse method