Core script to do stuff