uid assignment removed, as it was causing undefined method 'uid='.