Added some extra functions, I hope you like

Signed-off-by: Andoni Aguirrezabal <aaguirrezabal@live.com>