Initial implementation of lightrest