Working compile and return of hash