All actions now done by funcions