Fixed permissions issue, deleted alternative implementation