Added main for standalone server