Why not just get the setting object and use the values directly from that.  Saves getting the semaphore twice.