Added working PHash server implementation.