Reads options to array