Portal code

Signed-off-by: tachyony <tachyony@live.co.uk>