Added registry code for testing on server