Workaround for optimist