Update Plog function