Main function to call parser