Fixed bug and added executable bit